FROM  openjdk:8-jdk-alpine
VOLUME /tmp
ARG JAR_FILE
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
#打包命令
#mvn install -Dmaven.test.skip=true dockerfile:build
#本地运行测试命令
#docker run --network=cloud-net --ip=172.27.0.11 --name xy-cloud-gateway -d -p 901:901 xy-cloud/gateway:1.0.0
#删除当前运行的服务
#docker rm xy-cloud-gateway
#项目插件
#docker network create -d bridge --subnet 172.27.0.0/16 cloud-net
#docker  run --network=cloud-net --ip=172.27.0.5 -d --hostname rabbit_host --name rabbitmq -p 15672:15672 -p 5672:5672  -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin rabbitmq:management
#docker run --network=cloud-net --ip=172.27.0.12 -d -e MODE=standalone -e SPRING_DATASOURCE_PLATFORM=mysql -e MYSQL_SERVICE_HOST=172.27.0.6 -e MYSQL_SERVICE_PORT=3306 -e MYSQL_SERVICE_USER=root -e MYSQL_SERVICE_PASSWORD=root -e MYSQL_SERVICE_DB_NAME=cloud_nacos -p 8848:8848 --restart=always --name nacos-server_1_3 nacos/nacos-server:1.3.1
#docker run --network=cloud-net --ip=172.27.0.8 -itd --name redis -p 6379:6379 redis --requirepass 123456 -v /data/redis/data:/data
#docker run --network=cloud-net --ip=172.27.0.9 -d --name seata-server -p 8091:8091 -e SEATA_CONFIG_NAME=file:/root/seata-config/registry -v /User/seata/config:/root/seata-config seataio/seata-server
#docker run --network=cloud-net --ip=172.27.0.10 --name openzipkin -d -p 9411:9411 openzipkin/zipkin:latest
#docker run --network=cloud-net --ip=172.27.0.6 -p 3306:3306 --name mysql -v /usr/local/docker/mysql/conf:/Users/niuniu/Documents/data/mysql/config -v /usr/local/docker/mysql/logs:/Users/niuniu/Documents/data/mysql/log -v /usr/local/docker/mysql/data:/Users/niuniu/Documents/data/mysql/data -e MYSQL_ROOT_PASSWORD=root -d mysql:5.7
